package com.chalk.vo;

import com.chalk.model.TicketOrderItem;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class TicketOrderVo {
    @NotNull(message = "预定时间不能为空！")
    private String scheduledTime; //预定时间
    @DecimalMax("99999999")
    @NotNull(message = "订单总金额不能为空！")
    private BigDecimal ticketOrderTotal;//订单总金额
    @NotNull(message = "订单详情不能为空！")
    private List<TicketOrderItem> ticketOrderItems; //订单详情
    @NotNull(message = "venueId不能为空！")
    private Integer venueId;
}
